﻿<UserControl x:Class="KSAWPFDemo.MapControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:bing="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"
             mc:Ignorable="d" 
             
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <bing:Map CredentialsProvider="BING MAP API KEY HERE" Name="BingMap"></bing:Map>
        <!-- Apply an overlay grid for UI controls-->
        <Grid Background="Transparent" IsHitTestVisible="False">
            <Label HorizontalAlignment="Right"
                   VerticalAlignment="Top"
                   Margin="30"
                   Foreground="White"
                   Opacity=".5"
                   FontSize="12"
                   Name="location"></Label>
            <Label HorizontalAlignment="Right" 
                       VerticalAlignment="Bottom" 
                       Name="statusLabel"
                       Margin="30"
                       Foreground="Black"  
                       FontSize="10"                       
                       >No hover Detected</Label>
            <Slider Orientation="Vertical"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Center"
                     
                        Height="400"
                        Width="20"
                        Maximum="600"
                        Minimum="0"
                        Ticks="0, 180,260"
                        TickPlacement="TopLeft"
                        Background="DarkBlue"
                        Foreground="LightBlue"
                        Margin="50"                        
                        Name="HeightSlider"
                        />
        </Grid>
    </Grid>
</UserControl>
